<template>
  <div>
    <h2>v-bind 语法and用法</h2>
    <img src="imgsrc" alt="" />
    <img v-bind:src="imgsrc" alt="" />
    <a :href="'http://127.0.0.1:3002/userdetail?id=' + id">用户</a>
    &nbsp;&nbsp;&nbsp;
    <img :src="imgsrc" alt="" />
    <img :src="imgsrc2" alt="" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      imgsrc:
        "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1819216937,2118754409&fm=26&gp=0.jpg",
      // imgSrc: "./bh3_100000000129.png",
      imgsrc2:
        "https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2343438173,3540329520&fm=26&gp=0.jpg",
      id: 10,
    };
  },
};
</script>

<style>
</style>